package Cantella::DJabberd::Model::Admin::JabberGroup::Action::Create;

use Reaction::Class;
use aliased 'Reaction::InterfaceModel::Action::DBIC::ResultSet::Create' => 'DBIC_Create';

class Create is DBIC_Create, which {

  has user_jids   => (
                      is  => 'rw',
                      isa => 'ArrayRef',
                      valid_values => sub {
                        shift->target_model->result_source
                          ->related_source('jabber_group_jids')
                            ->related_source('user_jid')->resultset;
                      }
                     );
};

1;
